#include "Component.h"

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    Component *simple = new ConcreteComponent;
    std::cout << simple->operation() << std::endl;

    Component *decorator1 = new ConcreteDecorator(simple);
    Component *decorator2 = new ConcreteDecorator(decorator1);
    std::cout << decorator2->operation() << std::endl;

    delete decorator2;
    return 0;
}